//
//  CYTESTONEViewController.m
//  CreditAddressBook
//
//  Created by Mosu&Cuu on 15/11/13.
//  Copyright © 2015年 Lee. All rights reserved.
//

#import "CYTESTONEViewController.h"

@interface CYTESTONEViewController ()

@end

@implementation CYTESTONEViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"信用";
    self.view.backgroundColor = [UIColor blueColor];
    [self testclass];
    // Do any additional setup after loading the view.
}

-(void)testclass{
    
    UIButton *testbutton = [[UIButton alloc] initWithFrame:CGRectMake(100, 100, 200, 50)];
    [testbutton setTitle:@"念念是傻逼" forState:UIControlStateNormal];
    [testbutton addTarget:self action:@selector(click:) forControlEvents:UIControlEventTouchUpInside];
    testbutton.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:testbutton];
    
    UITableView *testtable = [[UITableView alloc]initWithFrame:CGRectMake(self.view.x,self.view.y+200, self.view.width, 600)];
    testtable.backgroundColor = [UIColor whiteColor];
    //testtable.delegate = self;
    [self.view addSubview:testtable];
    
}


-(void)click:(UIButton *)btn{
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
